import request from '@/utils/request';

export async function reqTyPurchaseOrderList(data: any, options?: any): Promise<any> {
	return request('/api/sys/purchaseOrder/list', {
		method: 'POST',
		data,
		...(options || {}),
	});
}

export async function reqAddTyPurchaseOrder(data: any, options?: any): Promise<any> {
	return request('/api/sys/purchaseOrder/create', {
		method: 'POST',
		data,
		...(options || {}),
	});
}

export async function reqUpdateTyPurchaseOrder(data: any, options?: any): Promise<any> {
	return request('/api/sys/purchaseOrder/update', {
		method: 'POST',
		data,
		...(options || {}),
	});
}

export async function reqDeleteTyPurchaseOrder(data: any, options?: any): Promise<any> {
	return request('/api/sys/purchaseOrder/delete', {
		method: 'POST',
		data,
		...(options || {}),
	});
}


